package com.xiaojf.xsso.client;

import com.xiaojf.xsso.client.config.SsoClientConfig;
import com.xiaojf.xsso.client.config.SsoTokenClientConfig;
import com.xiaojf.xsso.client.config.SsoWebClientConfig;
import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * 自动加载的类
 *
 * @author Ade.Xiao 2021/3/12 10:14
 */
public class XssoClientSelector implements ImportSelector {

    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        // 需要自动加载的类
        return new String[]{SsoClientConfig.class.getName(), SsoTokenClientConfig.class.getName(), SsoWebClientConfig.class.getName()};
    }
}
